gdkglcontext: Fix build with MSVC
authorXavier Claessens <xavier.claessens@collabora.com>
Sun, 18 Oct 2020 21:14:22 +0000 (17:14 -0400)
committerXavier Claessens <xavier.claessens@collabora.com>
Mon, 19 Oct 2020 13:17:53 +0000 (09:17 -0400)
GLDEBUGPROC callback is defined with APIENTRY which is a windows
specific calling convention. That macro expands to nothing when building
on other platforms.

Fixes: #3268.
gdk/gdkglcontext.c

index 135db3014014356584d71d68319160c46b5b773a..5d73080b9bb76d3d4458c819771651f0bff7c6f1 100644 (file)
@@ -864,7 +864,7 @@ gdk_gl_context_get_use_es (GdkGLContext *context)
   return priv->use_es > 0;
 }
 
-static void
+static void APIENTRY
 gl_debug_message_callback (GLenum        source,
                            GLenum        type,
                            GLuint        id,